import json

with open("image_0.json", "r") as f:
    result = json.load(f)
result["imagePath"] = "3920_1.jpg"
result["imageHeight"] = 2688
result["imageWidth"]  = 3920
shape_num = len(result["shapes"])
for i in range(shape_num):
    result["shapes"][i]["points"][0][0] = result["shapes"][i]["points"][0][0] * 1.4 + 0
    result["shapes"][i]["points"][0][1] = result["shapes"][i]["points"][0][1] * 1.4 + 33
    result["shapes"][i]["points"][1][0] = result["shapes"][i]["points"][1][0] * 1.4 + 0
    result["shapes"][i]["points"][1][1] = result["shapes"][i]["points"][1][1] * 1.4 + 33

with open('3920_1.json', 'w', encoding='utf-8') as f:
    data = json.dump(result, f, indent=4)